package comp5511.project04;

import java.util.List;

public class TrieNode {

	private int words;
	
	private int prefixes;
	
	private TrieNode[] children;
	
	private List<Paper> paperList;
	
	public TrieNode(){
		words = 0;
		prefixes = 0;
		children = new TrieNode[256];
		for(int i=0; i< children.length;i++){
			children[i] = null;
		}
	}

	public TrieNode[] getChildren() {
		return children;
	}

	public void setChildren(TrieNode[] children) {
		this.children = children;
	}
	
	public void setChildren(int index, TrieNode node){
		this.children[index] = node;
	}

	public int getWords() {
		return words;
	}

	public void setWords(int words) {
		this.words = words;
	}

	public int getPrefixes() {
		return prefixes;
	}

	public void setPrefixes(int prefixes) {
		this.prefixes = prefixes;
	}

	public List<Paper> getPaperList() {
		return paperList;
	}

	public void setPaperList(List<Paper> paperList) {
		this.paperList = paperList;
	}
	
}
